<?php

	foreach($data[0] as $key=>$row)
	{
		printf("<div class=\"img-archive\">
        		<a href=\"/main/post/?post=%s\"><img src=\"http://heapstore.ru/storage/%s/%s\" width=480px/></a>
        		</div>
				", $row['Id'],$row['Page'], $row['Photo']);
	}
	echo"</br></br></br><div class='paginator' id='paginator_example'></div>";
			printf("
				<script type='text/javascript'>
				paginator_example = new Paginator(\"paginator_example\", %s, 15, %s, \"/archive/skip/?skip=\");
				</script>
			", $data[1]['NumOfPages'],  $data[1]['Step']);
?>

